#ifndef _BMP_H_
#define _BMP_H_

class CBmp : public CBitmap
{

public:
	CBmp( );
	~CBmp( );

public:
	LPVOID			GetDIBits()				{ return m_pBitmap; }
	LPBITMAPINFO	GetBitmapInfo()			{ return  (BITMAPINFO*) &m_BMI; }
	BOOL			Load( char * lpszFileName );
	BOOL			Draw( CDC* pDC, CRect & rcDst, CRect & rcSrc );
    BOOL			Draw( CDC* pDC, CPoint ptDest );
	BOOL			Draw( HDC hDC, CRect & rcDst, CRect & rcSrc );
	BOOL			Draw( HDC hDC, CPoint ptDest );
	BOOL			DrawBitmap( CDC* pDC, CRect & rcDst, CRect & rcSrc );
    BOOL			DrawBitmap( CDC* pDC, CPoint ptDest );
	BOOL			DrawBitmap( HDC hDC, CRect & rcDst, CRect & rcSrc );
	BOOL			DrawBitmap( HDC hDC, CPoint ptDest );
	int				GetWidth();
	int				GetHeight();
private:
	BITMAPINFO		m_BMI;
	BYTE*			m_pBitmap;
};

#endif